package com.college.express.activity;

import android.os.Bundle;
import android.view.View;

import androidx.recyclerview.widget.RecyclerView;

import com.college.express.R;
import com.college.express.adapter.TaskListAdapter;
import com.college.express.base.BaseActivity;
import com.college.express.entity.TaskListBean;

import java.util.ArrayList;
import java.util.List;

public class TaskListActivity extends BaseActivity {

  private RecyclerView mRvTaskList;
  private TaskListAdapter mTaskListAdapter;

  private List<TaskListBean> dataList;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_task_list);
    initView();
  }

  @Override
  protected boolean showTitle() {
    return true;
  }

  @Override
  protected String setTitle() {
    return "快递列表";
  }

  @Override
  protected void initView() {
    mRvTaskList = (RecyclerView) findViewById(R.id.rv_task_list);
  }

  @Override
  protected void initData() {
    dataList = new ArrayList();
    mTaskListAdapter = new TaskListAdapter(dataList);
    mRvTaskList.setAdapter(mTaskListAdapter);
  }

  @Override
  public void onClick(View v) {

  }
}